<?php

class AdminMaster extends TTemplateControl
{
	public function onInit($param)
	{
		parent::onInit($param);
		date_default_timezone_set('Asia/Singapore');		
	}
	
	protected function getUrlPrefix()
	{
		return $this->Request->UrlManagerModule->UrlPrefix;
	}
	
	protected function btnLogout_Clicked($sender, $param)
	{
		$this->Application->getModule("auth")->logout();
		$this->Response->redirect($this->Service->ConstructUrl("Index"));
	}
}

?>